#include <stdio.h>
#include <string.h>
#include "myfile.h"

#define FILE_NAME "test.txt"

int main()
{
    _FILE* fp = _fopen(FILE_NAME, "a");
    if (fp == NULL) return 1;
    
    int cnt = 10;
    const char* str = "hello linux\n";
    while (cnt--)
    {
         _fwrite(fp, str, strlen(str));
    }

    _fclose(fp);

    return 0;
}

